home *** CD-ROM | disk | FTP | other *** search
- property ancestor
-
- on new me, tableName, castName, tableChannel, xLoc, vSlider, HSlider, descendant
- if objectp(descendant) then
- PassVar = descendant
- else
- PassVar = me
- end if
- ancestor = new(script("subtable object"), tableName, castName, tableChannel, xLoc, vSlider, HSlider, PassVar)
- return me
- end
-
- on trackMouse me
- setThumb(me.pVSlider, 1)
- startCell = cellToPoint(me._me, sprite(me.pTableChannel).mouseCell)
- setAt(startCell, 2, 0)
- trackMouse(me.pSuperTable, startCell)
- return me
- end
-
- on CalcCenterofRect me, xRect
- if the machineType = 256 then
- SpanHRect = GetSpanHeaderNewRect(me.pSuperTable)
- l = getAt(xRect, 1)
- t = getAt(xRect, 2)
- R = getAt(xRect, 3)
- b = getAt(xRect, 4)
- xCenter = (R - l) / 2
- if ((l mod 2) = 1) and ((R mod 2) = 1) then
- xCenter = xCenter - 1
- end if
- if ((l mod 2) = 0) and ((R mod 2) = 0) then
- xCenter = xCenter - 1
- end if
- if ((l mod 2) = 1) and ((R mod 2) = 0) then
- xCenter = xCenter - 1
- end if
- yCenter = (b - t) / 2
- xPoint = point(l + xCenter, t + yCenter)
- else
- xPoint = RectToLoc(xRect)
- end if
- return xPoint
- end
-